/*    */ package com.asiainfo.dacp.stat.olapcheck;
/*    */ 
/*    */ import java.util.Comparator;
/*    */ 
/*    */ public class DimItemSort implements Comparator {
/*    */   public String sortfield;
/*    */   
/*  8 */   public DimItemSort(String sortfield) { this.sortfield = sortfield; }
/*    */   
/*    */   public int compare(Object o1, Object o2) {
/* 11 */     DimItemData item1 = (DimItemData)o1;
/* 12 */     DimItemData item2 = (DimItemData)o2;
/*    */     
/* 14 */     if (item1.getFieldVal(this.sortfield) < item2.getFieldVal(this.sortfield)) {
/* 15 */       return 1;
/*    */     }
/* 17 */     return 0;
/*    */   }
/*    */ }


/* Location:              C:\Users\my\.m2\repository\com\asiainfo\dacp\dacp-dataos\1.0.0\dacp-dataos-1.0.0.jar!\com\asiainfo\dacp\stat\olapcheck\DimItemSort.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */